home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / ELECTRON / 3634.ZIP / PWR100.ZIP / PWRDEMO.DOC < prev    next >
Text File  |  1992-10-11  |  21KB  |  541 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                         ┌╦═══╦┐ ┌╦═══╦┐ ┌╦   ╦┐ ┌╔═══╦┐ ┌╦═══╦┐
  10.                         │╠═══╩┘ │║   ║│ │║╔╩╗║│ ├╬═══   │╠══╦╩┘
  11.                         └╩      └╩═══╩┘ └╩╝ ╚╩┘ └╩═══╩┘ └╩  ╚═┘
  12.  
  13.                                       Version 1.0
  14.  
  15.                        Copyright 1991-1992  Michael D. O'Connor
  16.                                   All Rights Reserved
  17.  
  18.  
  19.                                  ┌─────────┐
  20.                            ┌─────┴───┐     │              (R)
  21.                          ──│         │o    │──────────────────
  22.                            │   ┌─────┴╨──┐ │  Association of
  23.                            │   │         │─┘  Shareware
  24.                            └───│    o    │    Professionals
  25.                          ──────│    ║    │────────────────────
  26.                                └────╨────┘    MEMBER
  27.  
  28.  
  29.  
  30.  
  31.  
  32.                                  ┌──────────────────┐
  33.                                  │ FILE PWRDEMO.DOC │
  34.                                  └──────────────────┘
  35.  
  36.  
  37.                            ┌──────────────────────────────┐
  38.                            │ Guide to POWER Demonstration │
  39.                            └──────────────────────────────┘
  40.  
  41.  
  42.  
  43.                 PREVIEW:
  44.  
  45.                 This file contains a user-guided demonstration of the
  46.                 Power program's operations and capabilities.
  47.  
  48.                 A special note needs to be made:  the program will only
  49.                 recognize one DataBase filename:  CHIP.BSE.  This is
  50.                 the DataBase file for storing all chips and their
  51.                 parameters that have ever been entered through the
  52.                 program.  The CHIP.BSE does NOT contain useful
  53.                 information; it contains only filler data for
  54.                 demonstration purposes.  The first 16 lines does
  55.                 contain useful data.
  56.  
  57.  
  58.  
  59.  
  60.                                            1
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.            After completing the demonstration, you should delete the
  68.            CHIP.BSE file and then start the Power program.  It will
  69.            automatically create a new CHIP.BSE file, ready to receive input
  70.            whenever you enter chip part numbers for your circuit.
  71.  
  72.            This guide includes 3 different demonstrations:  the Calculation,
  73.            Merge, and the Data-Entry demonstrations.
  74.  
  75.  
  76.  
  77.                         POWER PROGRAM CALCULATION DEMONSTRATION
  78.                        ─────────────────────────────────────────
  79.  
  80.            This section will guide the user with a user-run demonstration of
  81.            the data-processing function of the Power program, in which the 3
  82.            sample files will be used to yield the calculated current
  83.            requirements.  These three sample files contain actual chip
  84.            parameter data.
  85.  
  86.                     ┌─────────────────────────────────────────────┐
  87.                     │ First print out this short document, then   │
  88.                     │ run the program with this document in hand. │
  89.                     └─────────────────────────────────────────────┘
  90.  
  91.            Type "PWR" and press the <Enter> key at the DOS prompt.  Press
  92.            the required function key (randomly selected by the program) to
  93.            start the program.
  94.  
  95.            Next, type in the name of the included file, SAMPLE.DAT, at the
  96.            "Input Filename 1" prompt.  Press <Enter> on the second filename
  97.            prompt.  The Main Menu will be displayed.
  98.  
  99.            To view the opened file, type 2 and press <Enter>.  You will see
  100.            a list of chips whose current parameters (the parameters may be
  101.            current, but I'm talking about electrical current! <grin>) and
  102.            quantities will be factored into Power's averaging formula to
  103.            arrive at the calculated current.
  104.  
  105.            Next, after exiting the view function, type 6 and press <Enter>
  106.            to start the calculations.  A chart box will immediately pop up
  107.            with the calculated values, and you will be prompted with whether
  108.            you want the results to be output to the disk in ASCII format
  109.            (text file).  Note the value under "Calculated Required Current,"
  110.            which is 0.881 amps.
  111.  
  112.            The 0.881-amp figure is in the range between the "Total Typical
  113.            Current" value (0.706 amps) and the "Total Maximum Current" value
  114.            (1.230 amps).  The user can design to 0.881 amps with about 84%
  115.            confidence instead of 1.230 amps, the worst case value.
  116.  
  117.  
  118.  
  119.  
  120.                                            2
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.            Press <Enter> (for No to the text file prompt).  (You may output
  128.            the totals to disk if you wish.)  Back at the Main Menu, type 7
  129.            and press <Enter> to re-initialize the program with 2 new sample
  130.            files.  The SAMPLE.DAT file will be released from memory, but the
  131.            CHIP.BSE database file will remain loaded in memory.  You will be
  132.            prompted with 2 filename prompts.  This has the effect of exiting
  133.            the program, then restarting it with new input files.  Enter the
  134.            following filenames, one for each prompt: SAMPLEA.DAT,
  135.            SAMPLEB.DAT.  (Since the default file extension is .DAT, you can
  136.            enter just the name without the extension.)
  137.  
  138.            The contents of these two files are actually the contents of
  139.            SAMPLE.DAT file split in half.  The purpose is to show that
  140.            running the calculations via function 6 (Process Input Files) on
  141.            these 2 files together will yield the same results as the one
  142.            yielded by the single SAMPLE.DAT file.
  143.  
  144.            To do this, type 6 and press <Enter>.  This time, a different
  145.            window with a prompt will appear.  (This is because the program
  146.            sensed that there is more than one input file.)  You are prompted
  147.            on which files you want processed.  Since you want to process
  148.            both files, enter "12" without any spaces (and without the
  149.            quotes).  This denotes files 1 and 2 for processing (a menu box
  150.            will show which file is which number).
  151.  
  152.            Since you are processing more than one file, an Assigned Vcc
  153.            value must be given as a common denominator for the data in both
  154.            files.  Type 5 and press <Enter> when prompted.
  155.  
  156.            After this, the chart box will again pop up, giving the same
  157.            results arrived at by the SAMPLE.DAT file:  0.881 amps for the
  158.            calculated current.
  159.  
  160.                            end of Calculation Demonstration
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.                                            3
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.                            POWER PROGRAM MERGE DEMONSTRATION
  188.                           ───────────────────────────────────
  189.  
  190.            This section will show the effectiveness of the Merge function,
  191.            number 5 in the Main Menu.  The following sample files will be
  192.            used for this demo:  SAMPLEA.DAT, SAMPLEB.DAT, SAMP500.DAT, and
  193.            SAMP998.DAT.
  194.  
  195.            The Merge function is a major feature that merges an input file's
  196.            set of data with another input file without duplicating them.
  197.            The advantage is that a group of users can benefit from one
  198.            another's data entries (since every user has his own DataBase).
  199.            All that is needed is a merge operation of everyone's databases
  200.            and the user's own DataBase is updated with all the input that
  201.            the rest of the group entered.  This is what a DOS copy command
  202.            cannot do.
  203.  
  204.            The same cannot be said of the input files, since a mere DOS copy
  205.            command is all it takes between users (A DOS copy command is an
  206.            internal DOS command that makes a copy of one file to another
  207.            location. Please refer to MS-DOS User's Guide and Reference for
  208.            more information).  But sometimes a user may want to combine two
  209.            or more input files in one file because the separate circuits
  210.            represented in separate files may need to be combined into one
  211.            circuit as part of the design process.
  212.  
  213.            Both scenarios justify the need for a Merge function.
  214.  
  215.            Start the program with one new sample file, SAMPLEC.DAT, to
  216.            create a new, empty file.
  217.  
  218.            (Or if you are continuing from the previous Calculation
  219.            Demonstration, type 7 and press <Enter> to re-initialize the
  220.            program with just one file, SAMPLEC.DAT, instead of the two you
  221.            have currently loaded.)
  222.  
  223.            At the Main Menu, type 5 and press <Enter>.
  224.  
  225.            You will then be prompted for an input file name.  This is the
  226.            file whose data will be merged into the input file you have
  227.            currently loaded.  (This external file is the "merger" whose data
  228.            will merge to the "mergee," which is the input file, SAMPLEC.DAT,
  229.            now loaded in memory.)  Enter one of the sample input file:
  230.            SAMPLEA.DAT  (the Merger).
  231.  
  232.            Since you are merging data from SAMPLEA.DAT into an empty file,
  233.            the program senses this and kicks into Automatic Mode.  This is
  234.            nothing more than copying the data.  The operation will be quick.
  235.  
  236.  
  237.  
  238.  
  239.  
  240.                                            4
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.            Press any key to continue from the status report.  You will then
  248.            be prompted for another external file to merge to SAMPLEC.DAT,
  249.            which is now filled.  Enter another sample input file:
  250.            SAMPLEB.DAT.
  251.  
  252.            This time, because the program senses that the Mergee file
  253.            (SAMPLEC.DAT) is not empty, you will be prompted on the Merge
  254.            Mode to kick into.  There are two basic modes, Automatic and
  255.            Semi-Automatic.  A third one is also an Automatic mode, but with
  256.            an additional instruction to add up all the quantities of each
  257.            matched part number.  This would be necessary if you are to
  258.            combine two circuits in one.  Without this instruction, all
  259.            records with matched part numbers are automatically screened out.
  260.            This would be useful if all you want to do is just collect data
  261.            that doesn't exist in your input file.
  262.  
  263.            Select the Automatic Mode without the add-quantity instruction.
  264.            The program will again kick into action, and leave a status
  265.            report.  It will be just as quick.  This time you'll be prompted
  266.            on whether you would like the line item numbers, which are now
  267.            out of sequence as a result of the merge operation, to be
  268.            resequenced.  Choose your answer.
  269.  
  270.            You have now just created a file identical to the SAMPLE.DAT
  271.            file.  If you like, you may run the calculations on this file.
  272.            The results should be the same as it was before.
  273.  
  274.            Next, after pressing any key to continue from the status report,
  275.            enter the next input file: SAMP998.DAT.  This file contains 499
  276.            records of filler data.  The part number field is numbered
  277.            sequentially from 2 to 998 with even numbers.
  278.  
  279.            Select the Semi_Automatic Mode.
  280.  
  281.            You will see a chart display showing one line each from the
  282.            Merger and Mergee files.  All you will see at this point is all
  283.            499 of the filler data being merged into the Mergee.  This is
  284.            because there is no match in either file to stop the action.  (If
  285.            a match occurs, it will stop for your confirmation to tranfer a
  286.            line of data with a duplicate part number.)
  287.  
  288.            Press a key to continue from the status report and enter another
  289.            input file: SAMP500.DAT.  This file contains 500 records of
  290.            filler data, but this time the part number field is numbered
  291.            sequentially from 1 to 500, both odd and even numbers.
  292.  
  293.            Select the Semi-Automatic Mode again.  This time you will have a
  294.            match, and the program will halt at a matched part number.
  295.  
  296.            Notice the match in the part numbers in both lines.  The program
  297.            stopped because there was a match in the two records, and you are
  298.            prompted on whether to merge the matched record from the Merger
  299.  
  300.                                            5
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.            to the Mergee.  (There is one caveat: when you actually merge
  308.            matched records, you are introducing part number redundancies in
  309.            the Mergee file.  This does not affect the required current
  310.            calculation process, however.)
  311.  
  312.            In between matches, the program will automatically merge
  313.            unmatched data to the Mergee file.  In this case, the
  314.            odd-numbered records will be merged but program is halted at
  315.            every even part number.  Press <Enter> several times to see this
  316.            happen.
  317.  
  318.            The key 'A' (for Automatic) is a hotkey that will kick the
  319.            program from Semi-Automatic to fully automatic mode (valid when
  320.            the program stops with a matched prompt).  Do this now.  Notice
  321.            the counts of attempted merges and the actual merges.  There
  322.            should be an attempted merge count of 500 and a total unmatched
  323.            merge count of 250.  The matched merge count will show how many
  324.            records you have allowed merged to the mergee file.
  325.  
  326.            Now, for a demonstration of a merge operation with the
  327.            add-quantity instruction, enter the SAMP500.DAT input file again
  328.            and select the Automatic Mode with the add-quantity instruction.
  329.            The resultant status report will show a total of 500 matched
  330.            records' quantities added, but no records actually merged at all.
  331.            In the earlier merge, only 250 of the 500 records were merged.
  332.            Here, all 500 records were affected by the add-quantity
  333.            instruction.
  334.  
  335.            This concludes the demonstration.
  336.  
  337.  
  338.            Try out the Merge function in the DataBase Menu; use the
  339.            CHIP500.BSE for merging to the DataBase.  The only difference
  340.            between this DataBase Merge function and the Merge function in
  341.            the Main Menu is that since the DataBase file has no quantity
  342.            field in it, there is no add-quantity instruction in the Merge.
  343.            Also, there is no Assigned Vcc field.
  344.  
  345.            Also try merging the DataBase to the input file (one that is not
  346.            a DataBase file) or vice versa.  You'll find that the program
  347.            will detect the file incompatibility error and issue an error
  348.            message to that effect.
  349.  
  350.                               end of Merge Demonstration
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.                                            6
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.                         POWER PROGRAM DATA ENTRY DEMONSTRATION
  368.                        ────────────────────────────────────────
  369.  
  370.            Load SAMPLE.DAT in memory.  Invoke number 1 Main Menu item for
  371.            starting the data-entry session.  You will see a highlighted
  372.            field bar in the part number field.  This is where you enter your
  373.            data.  The commands seen in the magenta command menu bar at the
  374.            bottom of the window is explained in detail by a
  375.            context-sensitive help; press the function key F1 for this.
  376.  
  377.            The Item Number you see on the far left box is the line item
  378.            number for the part you are entering.  It automatically
  379.            increments for every line of data you enter.
  380.  
  381.            Enter one line of data to get a feel for it.  Enter "part" for
  382.            the part number field, and enter all the other fields.
  383.  
  384.            When you are back in the part number field, press F3.  A
  385.            Constants Assignment box will pop up to give you a choice of
  386.            which of the three fields to assign constants to.  Choose 4 for
  387.            all three fields.
  388.  
  389.            Enter the following Variable Constants:
  390.  
  391.                            MAX Vcc      CONSTANT:  7
  392.                            MANUFACTURER CONSTANT:  Texas Inst
  393.                            PREFIX       CONSTANT:  SN74LS
  394.  
  395.            Any lower case characters are automatically capitalized.
  396.  
  397.            After this, the F4 key will become enabled on the magenta command
  398.            menu bar.  This key will clear all the constants.  Notice that
  399.            the part number field now has the string 'SN74LS' in it.  This
  400.            string will be inserted in this field for every new entry you
  401.            make, and any entry you make in this field will be concatenated
  402.            to this 'SN74LS' string, so that the program will treat the entry
  403.            as an entire part number.
  404.  
  405.            The constants are global constants, meaning the constants will
  406.            remain in effect as long as the program is running, regardless of
  407.            where you are in the menus, whether in the data-entry session or
  408.            not.  This way you won't have to re-assign the constants after
  409.            re-invoking the data-entry session.  The Variable Constants
  410.            become undefined once the program is exited.
  411.  
  412.            The F5 key allows you to see the Variable Constants.  Useful as a
  413.            reminder once you resume your data entry.
  414.  
  415.            Enter the string '100' in the part number field and press
  416.            <Enter>.  Notice the constants are filling up the fields
  417.            MANUFACTURER and MAX Vcc.  Also note the concatenation of the
  418.            '100' with the 'SN74LS'.
  419.  
  420.                                            7
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.            (The ASSIGNED Vcc value in the ASSGN Vcc field is not a constant
  429.            assignment; it is a known value that comes from the assigned
  430.            value given to the file when it was first created.  Its entry
  431.            field is always automatically filled in.)
  432.  
  433.            The term "Assigned Vcc" denotes the engineer's intent to apply
  434.            that voltage to his circuit design, and hence to the chip.
  435.  
  436.            Next, all you have left is the electrical current parameters, the
  437.            number of pins of the chip, and the quantity.  Enter any value in
  438.            these fields.
  439.  
  440.            Once back at the part number field, enter the string '00' and
  441.            press <Enter>.
  442.  
  443.            You will see a matched-part box pop up.  The information listed
  444.            therein is from the DataBase.  You are being prompted on whether
  445.            to transfer the data from the DataBase to the input file you are
  446.            entering data in.  Press <Enter> for an affirmative.
  447.  
  448.            NOTE:  This confirmation prompt can be disabled by toggling the
  449.            DataBase Xfer from the "Confirm" setting to the "Auto" setting in
  450.            the Configuration Menu, so that the matched chip's data is
  451.            automatically transferred to the input file without prompting for
  452.            user confirmation.  The Power program comes with the DataBase
  453.            Xfer set to "Confirm."
  454.  
  455.            All the entry fields will then be filled except for the quantity.
  456.            Hence all you've done is enter the suffix of a part number and
  457.            the quantity.  Short of the Merge operation, this is the ultimate
  458.            time-saver when it comes to data entry.  If the quantity is to be
  459.            one (1), pressing <Enter> is all that is needed since the default
  460.            quantity is one.
  461.  
  462.            Regardless of DataBase Xfer configuration setting, the message
  463.            "Parameters Transferred" is displayed whenever an actual transfer
  464.            occurs.
  465.  
  466.            Next, enter the string '100' in the part number field again and
  467.            press <Enter>.  You will see another part number match, but this
  468.            time it is the same data that you entered earlier.  Again, this
  469.            data comes from the DataBase.  Notice that the prefix 'SN74LS' is
  470.            concatenated to the suffix '100'.
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.                                            8
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.            After one more line of input, press the F4 function key and watch
  488.            the constants disappear and the F4 key on the magenta command
  489.            menu bar become disabled.
  490.  
  491.            This concludes the data entry demonstration.
  492.  
  493.                             end of Data Entry Demonstration
  494.  
  495.  
  496.  
  497.  
  498.            I hope you like the program.
  499.  
  500.            Please remember to delete the CHIP.BSE DataBase file, as it
  501.            contains only filler data.
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.                                            9
  541.